import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter  } from 'react-router-dom';
import './index.css';
import './assets/css/theme.scss';
import App from './App';
import registerServiceWorker from './registerServiceWorker';

/*redux*/
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import todoApp from './reducers'

let store = createStore(todoApp)

ReactDOM.render(
    <BrowserRouter >
        <Provider store={store}>
            <App />
        </Provider>
    </BrowserRouter >, document.getElementById('root'));
registerServiceWorker();
